<script setup lang="ts">
import {ref, useSlots, useAttrs} from 'vue'

let sum = ref(0)
let sum2 = ref(2)

</script>

<template>
	<div class="child">
		<h1>我是子组件</h1>
		<div>{{ sum }}</div>
		<div>{{ sum2 }}</div>
	</div>
</template>

<style scoped>
.child {
	background-color: blue;
	padding: 10px 50px;
}
</style>